package com.qtz.demo.service;

import com.qtz.demo.bean.Question;
import com.qtz.demo.mapper.QuestionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class QuestionServiceImpl implements QuestionService{

    @Autowired
    private QuestionMapper questionMapper;
    @Override
    public boolean addQuestion(Question question) {

        return questionMapper.addQuestion(question);

    }

    @Override
    public List<Map> showQA(String oid) {
        return questionMapper.showQA(oid);
    }

    @Override
    public List<Question> showUndoQuestion(String oid) {
        return questionMapper.showUndoQuestion(oid);
    }

    @Override
    public boolean dealQuestion(String qid) {
        return questionMapper.dealQuestion(qid);
    }
}
